|
Wait for Process Action |
Declaration |
<AMWAITFORPROCESS ACTION="options" PROCESS="Text"> |
See Also |
Wait for Pointer, Wait for Pixel, Wait for Window, Wait for File, Close Window |
Causes task execution to pause at the current line until the specified process starts or ends.
Commonly used to wait for an external application to start or end which could indicate that a process has completed successfully. If the process started/ended then the task could move on.
Specifies whether the step should wait for the process to start or end.
Available options are:
start: The action will wait for the specified process to start
end: The action will wait for the specified process to end
Specifies the executable of the process that AutoMate should wait for. Partial matches are allowed (either the full path or the EXE name only may be specified).
Run Action Contains Same Functionality
Users should be aware that most of the functionality contained in Wait
for Process <AMWAITFORPROCESS> is also contained in the Run
action <AMRUN>. This action should only need to be used if AutoMate
is not responsible for starting the process such as in cases where the
external application or the user starts/ends the process.
Standard Error Handling Options
This action also includes the standard "Error Causes" and "On
Error" failure handling options/tabs
More on Error Handling Options
Variables and Expressions
All text fields allow the use of expressions by surrounding the expression
in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help
construct these expressions, a popup expression builder is available in
all these fields by pressing F2.
More on variables...
More on expressions...
More on the expression builder...
<AMWAITFORPROCESS ACTION="end" PROCESS="C:\Program Files\ICQ\Icq.exe">
<AMWAITFORPROCESS ACTION="end" PROCESS="Icq.exe">
<AMWAITFORPROCESS ACTION="start" PROCESS="explorer.exe">